package sctu.edu.java.year2016.team01.renxinpeng.day20160530.chapter10_3;

import java.util.*;

/**
 * Created by Zero on 2016/5/30.
 * 创建Map集合，创建Emp对象，并将创建的Emp对象添加到集合中，
 * 并将id为005的对象从集合中移除。
 *
 */
public class Delete {
    public static void main(String[] args) {

        Map<String,String > Emp=new HashMap<String,String>();


        Emp.put("001","好");
        Emp.put("002","好");
        Emp.put("003","学");
        Emp.put("004","习");
        Emp.put("005","啊");


        System.out.println("原来的集合内容：");


        for(String v:Emp.values())
            System.out.print(v+" ");


        Emp.remove("005");


        System.out.println("");
        System.out.println("现在的集合内容：");


        for(String v:Emp.values())
            System.out.print(v+" ");

    }
}
